// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Vuex from 'vuex';
import App from './App'
import router from './router'
import store from './vuex/store';
import iView from 'iview';
import 'iview/dist/styles/iview.css';
import axios from 'axios';
import echarts from 'echarts';
Vue.prototype.eacharts = echarts;
// require('./assets/common/common.less');
import './assets/common/common.less';
//axios 配置
Vue.prototype.axios = axios.create({
  // baseURL: 'http://10.118.16.30:8080/api'
  baseURL: 'http://localhost:8080/api'
})
Vue.use(iView);
Vue.config.productionTip = false;

/* eslint-disable no-new */
const myVue = new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})

//iview message 全局设置
myVue.$Message.config({
  top: 300,
  duration: 3000
})